package admin

import (
	"time"

	global "github.com/cn-joyconn/goadmin/models/global"
)

//AdminUser实体类
type XAdminRoleLimit struct {
	Limit global.MyTime `json:"limit"`
	Role  int       `json:"role"`
}

func (x *XAdminRoleLimit) IsEffectiveTime() bool {
	return time.Now().Before(time.Time(x.Limit))
}
